#include <stdio.h>
#include <stdlib.h>
#include <zlog.h>

#include "kedis/configuration/config.h"

int main() {
    int rc;
    rc = dzlog_init("../conf/zlog.conf", "my_cat");

    if (rc) {
        printf("init zlog failed! rc:%d\n", rc);
        zlog_fini();
        exit(EXIT_FAILURE);
    }

    dzlog_info("hello world!");
    dzlog_info("kedis version major is %d", get_kedis_version_major());
    dzlog_info("kedis version minor is %d", get_kedis_version_minor());
    dzlog_info("kedis version patch is %d", get_kedis_version_patch());

    zlog_fini();

    return 0;
}